package com.ujoku.service.impl;

import com.labillusion.core.database.base.mybatis.dao.BaseDao;
import com.labillusion.core.database.base.mybatis.service.base.impl.BaseServiceImpl;
import com.ujoku.dao.ReviewDao;
import com.ujoku.domain.Review;
import com.ujoku.service.ReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Andy.Lian on 2015/1/25.
 */
@Service
public class ReviewServiceImpl extends BaseServiceImpl<Review> implements ReviewService<Review> {
    @Autowired
    private ReviewDao reviewDao;

    @Override
    protected BaseDao<Review> getBaseDao() {
        return reviewDao;
    }

    @Override
    public List<Review> getReviewByGoodsId(Map<String,Object> query) {

        return this.selectList(query);
    }
}
